//
//  KlineModel.h
//  Futures
//
//  Created by Cheng on 2017/6/23.
//  Copyright © 2017年 Cheng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TimeModel.h"

@interface KlineModel : TimeModel
//@property (copy,nonatomic) NSString *dateTime;
//@property (nonatomic, assign)float preClosePrice;//上个收盘价格
//@property (nonatomic, assign)float highPrice;//最高价
//@property (nonatomic, assign)float lowPrice;//最低价
//@property (nonatomic, assign)float openPrice;//开盘
//@property (nonatomic, assign)float nowPrice;//最新价
//@property (assign,nonatomic) float volume;//成交量

@property (assign,nonatomic) float MA5;
@property (assign,nonatomic) float MA10;
@property (assign,nonatomic) float MA20;
@property (assign,nonatomic) float MAVOL5;
@property (assign,nonatomic) float MAVOL10;

@property (nonatomic,assign) float maxPrice;
@property (nonatomic,assign) float minPrice;
@property (nonatomic,assign) float maxVolume;
@property (nonatomic,assign) float minVolume;

//+ (instancetype)modelWithString:(NSString *)str;

- (NSArray *)CalculationMALine:(NSArray<KlineModel *> *)models;
@end
